#include <stdio.h>

int main () {
    while (! feof (stdin)) {
        unsigned char hex = 0;
        if (EOF == fscanf (stdin, "%x", &hex))
            break;
        printf ("%c", hex);
    }
    return 0;
}
